package com.google.gwt.sample.contacts.client.hascontent;

import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;

import com.guit.client.View;

public class HasContentImpl implements HasContent {

    @Override
    public void setContent(View view) {
        assert view instanceof Widget : "The view should be a Widget";

        RootPanel.get().clear();
        RootPanel.get().add((Widget) view);
    }
}
